package io.awen.modules.sign.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.awen.modules.sign.entity.SignTaskEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * 收运任务表
 * 
 * @author liu.wen
 * @email liu.wen@qq.com
 * @date 2022-08-10 00:47:08
 */
@Mapper
public interface SignTaskDao extends BaseMapper<SignTaskEntity> {

    List<Map<String, Object>> weightGroupByCarAndTime(
            @Param("dispatchCarId") Long dispatchCarId,
            @Param("startTime") Date startTime,
            @Param("endTime") Date endTime,
            @Param("timeLength") Integer timeLength);

    List<Map<String,Object>> getDailyTotalReport(@Param("startTime") String startTime, @Param("endTime") String endTime);

    List<Map<String,Object>> getTotalByCar(@Param("startTime") String startTime, @Param("endTime") String endTime);


}




